<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>php.ini 配置段列表</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ini.list.html">« php.ini 配置选项列表</a></li>
      <li style="float: right;"><a href="ini.core.html">php.ini 核心配置选项说明 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ini.html">php.ini 配置</a></li>
    <li>php.ini 配置段列表</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ini.sections" class="section">
  <h2 class="title"> <var class="filename">php.ini</var> 配置段列表</h2>
  <p class="para">
   This list includes the <var class="filename">php.ini</var> sections you can set to configure your
   PHP setup on a per Host or Path basis. These sections are optional.
  </p>
  <p class="para">
   These sections don&#039;t directly affect PHP. They are used to group other
   <var class="filename">php.ini</var> directives together and to get them to act upon a particular host
   or on a particular path.
  </p>
  <p class="para">
   These sections are used only in CGI/FastCGI mode and they can not set
   <a href="ini.core.html#ini.extension" class="link">extension</a> and <a href="ini.core.html#ini.zend-extension" class="link">zend_extension</a> directives.
  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>配置段</strong></caption>
    
     <thead>
      <tr>
       <th>名字</th>
       <th>可修改范围</th>
       <th>更新日志</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><a href="ini.sections.html#ini.per-host" class="link">[HOST=]</a></td>
       <td>PHP_INI_SYSTEM</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td><a href="ini.sections.html#ini.per-path" class="link">[PATH=]</a></td>
       <td>PHP_INI_SYSTEM</td>
       <td class="empty">&nbsp;</td>
      </tr>

     </tbody>
    
   </table>

  </p>
  
  <p class="para">这是配置指令的简短说明。</p>
  
  <p class="para">
   <dl>
    
     <dt id="ini.per-host">
      <code class="parameter">[HOST=&lt;host&gt;]</code>
     </dt>

     <dd>

      <p class="para">
       This section allows you to define a set of <var class="filename">php.ini</var> directives that
       will take effect on the named host.
      </p>
      <p class="para">
       <div class="example" id="example-5513">
        <p><strong>示例 #1 Activate full on-screen error reporting for dev. domain</strong></p>
        <div class="example-contents">
<div class="php.inicode"><pre class="php.inicode">[HOST=dev.site.com]
error_reporting = E_ALL
display_errors = On</pre>
</div>
        </div>

       </div>
      </p>
     </dd>

    
    
    
     <dt id="ini.per-path">
      <code class="parameter">[PATH=&lt;path&gt;]</code>
     </dt>

     <dd>

      <p class="para">
       This section allows you to define a set of <var class="filename">php.ini</var> directives that
       will take effect when a script runs from the named path.
      </p>
      <p class="para">
       <div class="example" id="example-5514">
        <p><strong>示例 #2 Add security script for protected areas</strong></p>
        <div class="example-contents">
<div class="php.inicode"><pre class="php.inicode">[PATH=/home/site/public/secure]
auto_prepend_file=security.php</pre>
</div>
        </div>

       </div>
      </p>
     </dd>

    
    
   </dl>

  </p>
 </div></div></div></body></html>